/*
 * ArgumentHandler.hpp
 *
 *  Created on: 2 mars 2012
 *      Author: Jeff
 */

#ifndef ARGUMENTHANDLER_H_
#define ARGUMENTHANDLER_H_
#include "config.h"

struct Argument {
	const prog_uchar * representation;
	void * (*parse)(char * arg);
};

class ArgumentHandler {
public:
	struct Argument * argumentTypes;
	int argumentCount;
	ArgumentHandler();
	void registerAll(struct Argument * arg, int argc);
	void * parseArgument(int argType, char * str);
};

#endif /* ARGUMENTS_H_ */
